/**
 * @project_name staff_vehicle
 * @package_name com.ssh.ser.comonstaff
 * @desc TODO
 * @param
 * @author jack
 * @date 2013-4-28
 * @time 下午6:55:47
 */
package com.ssh.ser.comonstaff;

import java.util.List;

import com.ssh.dao.StaffDAOI;
import com.ssh.model.pdata.CSVWmatePData;

/**
 * @author jack
 *
 */
public class CSVWmateSerImpl implements CSVWmateSerI {
    private StaffDAOI staffDAOI ;

	/* (non-Javadoc)
	 * @see com.ssh.ser.comonstaff.CSVWmateSerI#viewWmByStaffId(java.lang.String)
	 */
	@Override
	public List<CSVWmatePData> viewWmByStaffId(String dimId) {
		// TODO Auto-generated method stub
		return staffDAOI.queryCSVWDataById(dimId);
	}

	/* (non-Javadoc)
	 * @see com.ssh.ser.comonstaff.CSVWmateSerI#viewWmByStaffFName(java.lang.String)
	 */
	@Override
	public List<CSVWmatePData> viewWmByStaffFName(String dimFName) {
		// TODO Auto-generated method stub
		return staffDAOI.queryWMPDataByFName(dimFName);
	}

	/* (non-Javadoc)
	 * @see com.ssh.ser.comonstaff.CSVWmateSerI#viewWmByStaffLName(java.lang.String)
	 */
	@Override
	public List<CSVWmatePData> viewWmByStaffLName(String dimLName) {
		// TODO Auto-generated method stub
		return staffDAOI.queryWMPDataByLName(dimLName);
	}

	/* (non-Javadoc)
	 * @see com.ssh.ser.comonstaff.CSVWmateSerI#viewAllWokermate()
	 */
	@Override
	public List<CSVWmatePData> viewAllWokermate() {
		// TODO Auto-generated method stub
		return staffDAOI.getAllWmatePData();
	}

	/* (non-Javadoc)
	 * @see com.ssh.ser.comonstaff.CSVWmateSerI#viewWmByStaffTel(java.lang.String)
	 */
	@Override
	public List<CSVWmatePData> viewWmByStaffTel(String dimTel) {
		// TODO Auto-generated method stub
		return staffDAOI.queryWMPDataByTel(dimTel);
	}

	/**
	 * @return the staffDAOI
	 */
	public StaffDAOI getStaffDAOI() {
		return staffDAOI;
	}

	/**
	 * @param staffDAOI the staffDAOI to set
	 */
	public void setStaffDAOI(StaffDAOI staffDAOI) {
		this.staffDAOI = staffDAOI;
	}

}
